// import com.alibaba.druid.sql.ast.SQLStatement;
// import com.alibaba.druid.sql.ast.statement.SQLSelect;
// import com.alibaba.druid.sql.dialect.mysql.visitor.MySqlASTVisitor;

// import java.util.ArrayList;
// import java.util.List;

#include "DrdsBaselineStatement.h"
#include "../../../../ast/statement/SQLSelect.h"
#include "../../visitor/MySqlASTVisitor.h"

DrdsBaselineStatement::DrdsBaselineStatement()
{
  baselineIds = std::make_shared<std::list<long>>();
}

void DrdsBaselineStatement::accept0(MySqlASTVisitor_ptr visitor)
{
  visitor->visit(SharedObject(DrdsBaselineStatement));
  visitor->endVisit(SharedObject(DrdsBaselineStatement));
}

string_ptr DrdsBaselineStatement::getOperation()
{
  return operation;
}

void DrdsBaselineStatement::setOperation(string_ptr operation)
{
  this->operation = operation;
}

void DrdsBaselineStatement::addBaselineId(long id)
{
  baselineIds->push_back(id);
}

long_list_ptr DrdsBaselineStatement::getBaselineIds()
{
  return baselineIds;
}

SQLSelect_ptr DrdsBaselineStatement::getSelect()
{
  return select;
}

void DrdsBaselineStatement::setSelect(SQLSelect_ptr select)
{
  this->select = select;
}
